Telegram Group & Telegram Channel
6. Conditionals

example

x = 5

if x == 5:
print("x equals 5")
else:
print("x does not equal 5")

it will output

x equals 5

🍏 other operators

x = 6
if x > 5:
print("x greater than 5")
else:
print("x less than 5")

outputs

x greater than 5

other operators

< less than
!= not equal to
>= greater equal to
<= less equal to

smart python

if 3<x<5:

means if x between 3 and 5

@python_codes



tg-me.com/python_codes/10
Create:
Last Update:

6. Conditionals

example

x = 5

if x == 5:
print("x equals 5")
else:
print("x does not equal 5")

it will output

x equals 5

🍏 other operators

x = 6
if x > 5:
print("x greater than 5")
else:
print("x less than 5")

outputs

x greater than 5

other operators

< less than
!= not equal to
>= greater equal to
<= less equal to

smart python

if 3<x<5:

means if x between 3 and 5

@python_codes

BY Python Codes


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_codes/10

View MORE
Open in Telegram


Python Codes Telegram | DID YOU KNOW?

Date: |

Launched in 2013, Telegram allows users to broadcast messages to a following via “channels”, or create public and private groups that are simple for others to access. Users can also send and receive large data files, including text and zip files, directly via the app.The platform said it has more than 500m active users, and topped 1bn downloads in August, according to data from SensorTower.Python Codes from ca


Telegram Python Codes
FROM USA